﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using Sub.Function;
using Client.Sys;

namespace UI
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.DataBind();
            }
            btnLogin.Click += new EventHandler(btnLogin_Click);

        }
        /// <summary>
        /// event login submit
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnLogin_Click(object sender, EventArgs e)
        {
            if (Membership.ValidateUser(this.txtUserName.Text, this.txtPassword.Text))
            {
                ///login accept       
                var action=new ActionService();
                var _mModule = new Module();
               _mModule.InstallModule();
            }

        }
    }
}